package org.micro.rbac.core.constant;


/**
 * 全局公共常量
 * @author hongsir
 * @since 2021-03-04 02:52:26
 */
public class Global {

    /**
     * 公共日期格式
     */
    public static final String DEFAULT_TIME_PATTERN = "HH:mm:ss";
    public static final String MONTH_FORMAT = "yyyy-MM";
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String TIME_FORMAT = "HH:mm:ss";
    public static final String TIME_H_M_FORMAT = "HH:mm";
    public static final String SIMPLE_MONTH_FORMAT = "yyyyMM";
    public static final String SIMPLE_DATE_FORMAT = "yyyyMMdd";
    public static final String SIMPLE_DATETIME_FORMAT = "yyyyMMddHHmmss";
    public static final String TIME_ZONE_GMT8 = "GMT+8";
    public static final String DT_ALL_FORMAT = "yyyyMMddHHmmssSSS";

    public static final String DATETIME_FORMAT_HH = "yyyyMMddHH";

    public static final String DT_TIME_START = "00:00:00";
    public static final String DT_TIME_END = "23:59:59";
    public static final String DATETIME_FORMAT_START = "yyyy-MM-dd 00:00:00";
    public static final String DATETIME_FORMAT_END = "yyyy-MM-dd 23:59:59";

    /**
     * 客户端信息
     */
    public static final String MDC_SERIAL = "serialNo";

    /**
     * 系统变量
     */
    public static final String CACHE_SPLIT = ":";

    /**
     * 内部全局字段属性
     */
    public static final String MSG = "msg";
    public static final String CODE = "code";

    /**
     * 参数默认值
     */
    public static final Integer PAGE_SIZE_MIN = 1;
    public static final Integer PAGE_SIZE_MAX = 500;
    public static final Integer PAGE_SIZE_DEFAULT = 10;
    public static final Integer PAGE_NUM_MIN = 1;
    public static final Integer PAGE_NUM_DEFAULT = 1;

}
